package edu.nf.waimai.model.order;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.nf.db.util.Column;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Date 2023/9/10
 * @Author zgm
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ShopOrder {
    //   o.order_id,o.u_id,o.shop_id,o.address_id,o.rider_id,o.order_status,o.total_price,o.order_type,o.order_datetime,o.order_remarks,o.order_details,
    //			 u.u_nickname,u.u_phone,s.shop_name,s.shop_phone,s.shop_address,r.rider_name,r.rider_phone,r.rider_type
    /**
     * 订单id
     */
    @Column("order_id")
    public String orderId;
    /**
     * 用户id
     */
    @Column("u_id")
    public Integer uid;
    /**
     * 店铺id
     */
    @Column("shop_id")
    public Integer shopId;
    /**
     * 骑手id
     */
    @Column("rider_id")
    public Integer riderId;
    /**
     * 地址id
     */
    @Column("address_id")
    public Integer addressId;
    /**
     * 订单状态
     */
    @Column("order_status")
    public Integer orderStatus;
    /**
     * 总价
     */
    @Column("total_price")
    public BigDecimal totalPrice;
    /**
     * 订单类型
     */
    @Column("order_type")
    public String orderType;

    /**
     * 订单事件
     */
    @Column("order_datetime")
    public LocalDateTime orderDatetime;
    /**
     * 订单备注
     */
    @Column("order_remarks")
    public String orderRemarks;

    /**
     * 订单详情
     */
    @Column("order_details")
    public String orderDetails;
    /**
     * 昵称
     */
    @Column("u_nickname")
    private String unickname;
    /**
     * 手机号
     */
    @Column("u_phone")
    private String uphone;

    /**
     * 商家名称
     */
    @Column("shop_name")
    public String shopName;
    /**
     * 商家手机号
     */
    @Column("shop_phone")
    public String shopPhone;
    /**
     * 商家地址
     */
    @Column("shop_address")
    public String shopAddress;
    /**
     * 骑手姓名
     */
    @Column("rider_name")
    private String riderName;
    /**
     * 骑手手机号
     */
    @Column("rider_phone")
    private String riderPhone;

    /**
     * 骑手手机号
     */
    @Column("rider_type")
    private String riderType;
    /**
     * 省份
     */
    @Column("province")
    private String province;
    /**
     * 城市
     */
    @Column("city")
    private String city;
    /**
     * 县区
     */
    @Column("district")
    private String county;
    /**
     * 详细地址
     */
    @Column("detail")
    private String addressDetail;
}
